# 使用轻量级的官方 Nginx 镜像作为基础镜像
FROM daocloud.io/library/nginx

# 时区
ENV TZ=Asia/Shanghai

COPY ./sources.list /etc/apt/sources.list

# 本地的 `nginx.conf` 文件复制到容器的 `/etc/nginx/conf.d/default.conf`
COPY nginx.conf /etc/nginx/conf.d/default.conf

# `builder` 阶段中复制构建好的文件到 Nginx 容器的网页根目录 `/usr/share/nginx/html`
COPY /dist /usr/share/nginx/html/

CMD ["nginx", "-g", "daemon off;"]